package com.ruoyi.app.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.app.mapper.AppUserDonationsMapper;
import com.ruoyi.app.domain.AppUserDonations;
import com.ruoyi.app.service.IAppUserDonationsService;

/**
 * 我的捐献记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-06
 */
@Service
public class AppUserDonationsServiceImpl implements IAppUserDonationsService 
{
    @Autowired
    private AppUserDonationsMapper appUserDonationsMapper;

    /**
     * 查询我的捐献记录
     * 
     * @param mydonationsId 我的捐献记录主键
     * @return 我的捐献记录
     */
    @Override
    public AppUserDonations selectAppUserDonationsByMydonationsId(Long mydonationsId)
    {
        return appUserDonationsMapper.selectAppUserDonationsByMydonationsId(mydonationsId);
    }

    /**
     * 查询我的捐献记录列表
     * 
     * @param appUserDonations 我的捐献记录
     * @return 我的捐献记录
     */
    @Override
    public List<AppUserDonations> selectAppUserDonationsList(AppUserDonations appUserDonations)
    {
        return appUserDonationsMapper.selectAppUserDonationsList(appUserDonations);
    }

    /**
     * 新增我的捐献记录
     * 
     * @param appUserDonations 我的捐献记录
     * @return 结果
     */
    @Override
    public int insertAppUserDonations(AppUserDonations appUserDonations)
    {
        return appUserDonationsMapper.insertAppUserDonations(appUserDonations);
    }

    /**
     * 修改我的捐献记录
     * 
     * @param appUserDonations 我的捐献记录
     * @return 结果
     */
    @Override
    public int updateAppUserDonations(AppUserDonations appUserDonations)
    {
        return appUserDonationsMapper.updateAppUserDonations(appUserDonations);
    }

    /**
     * 批量删除我的捐献记录
     * 
     * @param mydonationsIds 需要删除的我的捐献记录主键
     * @return 结果
     */
    @Override
    public int deleteAppUserDonationsByMydonationsIds(Long[] mydonationsIds)
    {
        return appUserDonationsMapper.deleteAppUserDonationsByMydonationsIds(mydonationsIds);
    }

    /**
     * 删除我的捐献记录信息
     * 
     * @param mydonationsId 我的捐献记录主键
     * @return 结果
     */
    @Override
    public int deleteAppUserDonationsByMydonationsId(Long mydonationsId)
    {
        return appUserDonationsMapper.deleteAppUserDonationsByMydonationsId(mydonationsId);
    }
}
